<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			td{
				text-align: center;
			}
			tbody>tr>td:nth-last-child(2){
				color: red;
			}
			tbody>tr>td:last-child{
				color: red;
			}
			tbody>tr:nth-child(2)>td:first-child{
				color: red;
			}
			tbody>tr:first-child>td:nth-child(n+2){
				color: red;
			}
		</style>
	</head>
	<body>
		<!-- table>(thead>tr>td*7)+tbody>tr*5>td*7 -->
		<table width="600" border="1" cellpadding="0" align="center">
			<caption>10月行事历</caption>
			<thead>
				<tr height="30">
					<th>星期一</th>
					<th>星期二</th>
					<th>星期三</th>
					<th>星期四</th>
					<th>星期五</th>
					<th>星期六</th>
					<th>星期日</th>
				</tr>
			</thead>
			<tbody>
				<tr height="30">
					<td>30</td>
					<td>1</td>
					<td>2</td>
					<td>3</td>
					<td>4</td>
					<td>5</td>
					<td>6</td>
				</tr>
				<tr height="30">
					<td>7</td>
					<td>8</td>
					<td>9</td>
					<td>10</td>
					<td>11</td>
					<td>12</td>
					<td>13</td>
				</tr>
				<tr height="30">
					<td>14</td>
					<td>15</td>
					<td>16</td>
					<td>17</td>
					<td>18</td>
					<td>19</td>
					<td>20</td>
				</tr>
				<tr height="30">
					<td>21</td>
					<td>22</td>
					<td>23</td>
					<td>24</td>
					<td>25</td>
					<td>26</td>
					<td>27</td>
				</tr>
				<tr height="30">
					<td>28</td>
					<td>29</td>
					<td>30</td>
					<td>31</td>
					<td>1</td>
					<td>2</td>
					<td>3</td>
				</tr>
			</tbody>
		</table>
	</body>
</html>